home *** CD-ROM | disk | FTP | other *** search
- #
- # post a message, either as:
- # "post" = starting a new subject
- # "followup" = continue on a subject
- # "reply" = reply to a message
- #
- # Copyright (C) 1994 Afzal Ballim
-
- ############################################################
- #
- # WFCommandPost:
- #
- sub WFCommandPost {
- require "ctime.pl";
-
- local ($c,%in)=@_;
- local ($date)=&ctime(time);chop $date;
- local ($user)=$ENV{REMOTE_USER};
- local (%mb)=&WFReadDBFile($user);
- local ($forumdec)=&WFDecodeDatum($in{"forum"});
- local ($subjectdec)=&WFDecodeDatum($in{"subject"});
-
- if ($c ne "reply") {$in{"message"} = "";}
-
- &WFIncFile("ABSWFHTML/POST.HTML",
- ENCFORUM,"$in{forum}",
- ENCSUBJECT,"$in{subject}",
- THEFORUM,"$forumdec",
- THESUBJECT,"$subjectdec",
- THEPXREF,"$in{message}",
- THEPOSTER,"$user ($mb{username})",
- THEPEMAIL,"<a href=mailto:$mb{email}>$mb{email}</a>",
- THEPHURL,"<a href=$mb{homeurl}>$mb{homeurl}</a>",
- THENOW,"$date");
-
- return "";
- }
-
- 1;
-